***Fortin-Rittberger
***replication commands for Jessica Fortin-Rittberger. 2016. "Cross-national gender-gaps in political knowledge: how much is due to context?"
*** Political Research Quarterly
***file #1 of 2. MACRO data operations 
***use with aggregate file only!


***data file submitted is a merged data file of Modules 1-3 of the CSES and prepared merged variables AGGREGATED at the election study level
***(full variable prepration available by ***demand please email j.fortin-rittberger@sbg.ac.at)

*FIGURE 1
*commands located in file 2 on micro file

*FIGURE 2
*commands located in file 2 on micro file

*FIGURE 3
*commands located in file 2 on micro file

*FIGURE 4 Distribution of the size of the gender-gap on the positive knowledge scale, in 107 post-election surveys between 1996-2011. 
graph hbar (asis) macrogap_1 if macrogap_1 ~=., over( Z1004, sort( macrogap_1) descending) bargap(0)


*TABLE 1. OLS Regression models estimating the aggregate size of the gender gap in political knowledge
reg macrogap_1 ib1.Z1023 i.Qstructure i.Z_Qcontent womencontent Z3036  womeninparliament lsq effnv dm_ksLOG , vce(jackknife)
estimates store e4, title(Model 1)
reg macrogap_2 ib1.Z1023 i.Qstructure i.Z_Qcontent womencontent Z3036  womeninparliament lsq effnv dm_ksLOG , vce(jackknife)
estimates store e5, title(Model 2)
reg macrogap_3 ib1.Z1023 i.Qstructure i.Z_Qcontent womencontent Z3036  womeninparliament lsq effnv dm_ksLOG , vce(jackknife)
estimates store e6, title(Model 3)

***printing table with esttab
esttab e4 e5 e6 using ///
"TABLE3.rtf", ///
cells(b(star fmt(3)) se(par fmt(2))) ///
legend label title(OLS, Regression Models Estimating the size of the gender gap in political knowledge) ///
nonumbers mtitles("Model 1" ///
"Model 2"  "Model 3" ) ///
star(* 0.10 ** 0.05 *** 0.01) r2 replace

***TABLE 2
*commands located in file 2 on micro file
